gpointer user_data)
{
GtkWidget *window = user_data;
- GdkPixbuf *pixbuf;
const gchar *authors[] = {
"Andrea Cimitan",
"Cosimo Cecchi",
NULL
};
- pixbuf = gdk_pixbuf_new_from_resource ("/logos/gtk-logo-256.png", NULL);
-
gtk_show_about_dialog (GTK_WINDOW (window),
"program-name", "GTK+ Widget Factory",
"version", g_strdup_printf ("%s,\nRunning against GTK+ %d.%d.%d",
"website", "http://www.gtk.org",
"comments", "Program to demonstrate GTK+ themes and widgets",
"authors", authors,
- "logo", pixbuf,
+ "logo-icon-name", "gtk3-widget-factory",
"title", "About GTK+ Widget Factory",
NULL);
-
- g_object_unref (pixbuf);
}
static void
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
- <gresource prefix="/logos">
- <file>gtk-logo-256.png</file>
- </gresource>
<gresource prefix="/ui">
<file preprocess="xml-stripblanks">widget-factory.ui</file>
</gresource>
<child>
<object class="GtkImage" id="imageo">
<property name="visible">True</property>
- <property name="resource">/logos/gtk-logo-256.png</property>
+ <property name="icon-name">gtk3-widget-factory</property>
</object>
<packing>
<property name="name">page2</property>